<?php

namespace Blog\PostBundle\Entity;

/**
 * @orm:Entity
 * @orm:Table(name="ressource")
 */
class Ressource {
    /**
     *
     * @orm:ID
     * @orm:Column(type="integer")
     * @orm:GeneratedValue(strategy="AUTO")
     */
    protected  $id_ressource;

    /**
     *
     * @orm:Column(type="string", length="100")
     */
    protected $chemin;

    /**
     *
     * @orm:Column(type="boolean")
     */
    protected $image;

    /**
     *
     * @orm:Column(type="text")
     */
    protected $description;

    /**
     *
     * @orm:ManyToOne(targetEntity="Post", inversedBy="ressources")
     * @orm:JoinColumn(name="post", referencedColumnName="id_post")
     */
    protected $post;

    public function getId_ressource() {
        return $this->id_ressource;
    }

    public function getChemin() {
        return $this->chemin;
    }

    public function setChemin($chemin) {
        $this->chemin = $chemin;
    }

    public function getImage() {
        return $this->image;
    }

    public function setImage($image) {
        $this->image = $image;
    }

    public function getDescription() {
        return $this->description;
    }

    public function setDescription($description) {
        $this->description = $description;
    }

    public function getPost() {
        return $this->post;
    }

    public function setPost($post) {
        $this->post = $post;
    }


}

?>
